package Mybatis.mapper;

import Mybatis.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author wq
 * @since 2022-06-22 14:58
 */

public interface ParamMapper {
    //一种参数的情况
    User selectByMobileParam(String mobile);
    //两种参数的情况
    User selectByMobileAndUsernameParam(String mobile,String Username);
    //@Param自定义变量名,写sql的时候就可以用自定义的变量名
    User selectByMobileAndUsernameParam1(@Param("mobile") String mobile,@Param("username") String Username);
    //传入map自定义sql变量名
    User selectByMobileAndUsernameParam2(Map<String,String> map);
}
